import axios from '@/libs/api.request'

// 商保应付账单
export class FinanceCPayableApi {
  // 商保应付账单导入
  static importCPayableBill (params) {
    return axios.request({
      url: '/FinanceCPayable/ImportCPayableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取商保应付账单列表数据_new
  static getCPayableBillList (params) {
    return axios.request({
      url: '/FinanceCPayable/GetCPayableBillList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取明细数据
  static getCPayableBillDetail (params) {
    return axios.request({
      url: '/FinanceCPayable/GetCPayableBillDetail',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出商保应付账单
  static exportCPayableBill (params) {
    return axios.request({
      url: '/FinanceCPayable/ExportCPayableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出商保应付账单
  static exportCPayableBillDetail (params) {
    return axios.request({
      url: '/FinanceCPayable/ExportCPayableBillDetail',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除数据
  static delete (params) {
    return axios.request({
      url: '/FinanceCPayable/Delete',
      method: 'delete',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出商保应付明细账单
  static exportSPayableBill (params) {
    return axios.request({
      url: '/FinanceCPayable/ExportSPayableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取保险编号
  static getSecurityNos (params) {
    return axios.request({
      url: '/FinanceCPayable/GetSecurityNos',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 导出编号
  static exportSecurityNos (params) {
    return axios.request({
      url: '/FinanceCPayable/ExportSecurityNos',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 校验并获取当前商保总额
  static checkConfirmPay (params) {
    return axios.request({
      url: '/FinanceCPayable/CheckConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 商保付款确认
  static confirmPay (params) {
    return axios.request({
      url: '/FinanceCPayable/ConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出付款单-实付
  static exportPayment (params) {
    return axios.request({
      url: '/FinanceCPayable/ExportPayment',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出明细 弹出页面 选择月份，填写编号
  static exportPayableDetail (params) {
    return axios.request({
      url: '/FinanceCPayable/ExportPayableDetail',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出付款申请单
  static exportPayPDF (params) {
    return axios.request({
      url: '/FinanceCPayable/ExportPayPDF',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 付款申请
  static payApply (params) {
    return axios.request({
      url: '/FinanceCPayable/PayApply',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 社保付款申请_new
  static getCPayableBillListApply (params) {
    return axios.request({
      url: '/FinanceCPayable/GetCPayableBillListApply',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 社保应付账单_new
  static getCPayableBillList (params) {
    return axios.request({
      url: '/FinanceCPayable/GetCPayableBillList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取可申请余额_new（点击申请付款之前调用）
  static getApplyRest (params) {
    return axios.request({
      url: '/FinanceCPayable/GetApplyRest',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 申请付款_new
  static applyPay (params) {
    return axios.request({
      url: '/FinanceCPayable/ApplyPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取付款信息列表_new
  static getPayList (params) {
    return axios.request({
      url: '/FinanceCPayable/GetPayList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 社保付款确认_new
  static confirmPay (params) {
    return axios.request({
      url: '/FinanceCPayable/ConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 申请删除
  static deletePayApply (params) {
    return axios.request({
      url: '/FinanceCPayable/DeletePayApply',
      method: 'delete',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 强制删除
  static forceDelete (params) {
    return axios.request({
      url: '/FinanceCPayable/ForceDelete',
      method: 'delete',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
